home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 3 / CD ACTUAL 3.iso / linux / docs / linux-do / programm / lpg-0.4 / lpg-0 / LPG / examples / Makefile < prev    next >
Encoding:
Makefile  |  1995-04-02  |  1.1 KB  |  57 lines

  1. CC=gcc
  2. LINK = $(CC)
  3. CFLAGS = -O2 -pipe -m386 #-Wall 
  4. LDFLAGS = -s
  5.  
  6. SRC = splay.c translate.c checklp.c miniterm.c type.c input.c calc.c \
  7.     screen.c 
  8.  
  9. USEFUL_TARGETS = splay checklp miniterm
  10. TARGETS = $(USEFUL_TARGETS) type input screen calc
  11.  
  12. all: $(TARGETS)
  13.     @echo make done.
  14.  
  15. splay: splay.o translate.o
  16.     $(LINK) splay.o translate.o $(LDFLAGS) -o $@
  17.  
  18. input: input.o
  19.     $(LINK) input.o -lncurses $(LDFLAGS) -o $@
  20.  
  21. type: type.o
  22.     $(LINK) type.o -lncurses $(LDFLAGS) -o $@
  23.  
  24. screen: screen.o
  25.     $(LINK) screen.o -lncurses $(LDFLAGS) -o $@
  26.  
  27. calc: calc.o
  28.     $(LINK) calc.o -lncurses $(LDFLAGS) -o $@
  29.  
  30. install:
  31.     @echo usage: make install.all or install.bin or install.man
  32.  
  33. install.all: $(USEFUL_TARGETS) install.man install.bin
  34.  
  35. install.bin: $(USEFUL_TARGETS)
  36.     install -m 555 $(USEFUL_TARGETS) /usr/local/bin
  37.  
  38. install.man:
  39.     install -m 444 *.1 /usr/local/man/man1
  40.     install -m 444 *.8 /usr/man/man8
  41.  
  42. clean:
  43.     rm -f *.o core $(TARGETS)
  44.  
  45. depend:
  46.     makedepend $(SRC)
  47.  
  48. ci:
  49.     ci -m"I hate log messages!" -t-"I hate description prompts!" -l $(SRC) Makefile
  50.  
  51. co:
  52.     co $(SRC) Makefile
  53.  
  54. .c.o: 
  55.     $(CC) $(CFLAGS) -c $<
  56.  
  57.